home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.txt / 000036_scottac@nb.sympatico.ca_Wed Dec 20 09:12:34 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: reader2.panix.com!reader1.panix.com!panix!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!News.Dal.Ca!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail
  2. From: "Scott Caissie" <scottac@nb.sympatico.ca>
  3. Newsgroups: comp.protocols.kermit.misc
  4. References: <xwOhh.34809$cz.516497@ursa-nb00s0.nbnet.nb.ca> <lWShh.32651$tb6.31529@news-wrt-01.rdc-nyc.rr.com>
  5. Subject: Re: Macro: Terminal -> Command -> Terminal -> Command?
  6. Lines: 55
  7. X-Priority: 3
  8. X-MSMail-Priority: Normal
  9. X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
  10. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
  11. X-RFC2646: Format=Flowed; Original
  12. Message-ID: <bF8ih.35271$cz.521966@ursa-nb00s0.nbnet.nb.ca>
  13. Date: Wed, 20 Dec 2006 10:56:07 GMT
  14. NNTP-Posting-Host: 156.34.45.151
  15. X-Complaints-To: abuse@aliant.net
  16. X-Trace: ursa-nb00s0.nbnet.nb.ca 1166612167 156.34.45.151 (Wed, 20 Dec 2006 06:56:07 AST)
  17. NNTP-Posting-Date: Wed, 20 Dec 2006 06:56:07 AST
  18. Organization: Aliant Internet
  19. Xref: panix comp.protocols.kermit.misc:15606
  20.  
  21. I see. I've been testing this out all day, and it works pretty much the way 
  22. I was aiming for.  I was never referred to using the INPUT command before, 
  23. and to be honest, I don't understand it 100% yet. I'm basically mirroring my 
  24. actions.
  25. I do have a question. Is there restrictions about using INPUT 0 <text>?
  26. This example works fine, but if I use INPUT 0 etc, it won't. I check to see 
  27. if it works by using \Fscrnstr(y,x,n) on a large scale.
  28.  
  29. SET INPUT TERMINAL ON
  30. set input echo off
  31. clear input-buffer
  32. define vega {
  33. .LZ_PRO := \Fscrnstr(0,6,8)
  34. OUTPUT \5\5\5\5\5\5\5\5\57\49\13\49\52\13\m(LZ_PRO)\24
  35. INPUT 1 \5\5\5\5\5\5\5\5\57\49\13\49\52\13\m(LZ_PRO)\24
  36. for \%t 1 24 1 {
  37. echo \Fscrnstr(\%t,0,79)
  38. }
  39. }
  40.  
  41.  
  42. "Jeffrey Altman" <jaltman2@nyc.rr.com> wrote in message 
  43. news:lWShh.32651$tb6.31529@news-wrt-01.rdc-nyc.rr.com...
  44. > Scott Caissie wrote:
  45. >
  46. >> Example:
  47. >> SET TERMINAL TRIGGER TEST
  48. >> OUTPUT TEST
  49. >> CONNECT
  50. >> * Trigger is used up, but didn't actually trigger anything.
  51. >
  52. > Triggers work on INPUT not on OUTPUT.  If the host echo's the
  53. > data back, then the trigger can be triggered.   If the host doesn't
  54. > echo the data back, then there is nothing to trigger on.
  55. >
  56. > If your terminal is in local-echo mode, then the host is not
  57. > sending any data and the local-echo would have been processed
  58. > when the OUTPUT command was executed.  In that case, the trigger
  59. > would not go off because you were not in CONNECT mode when the
  60. > INPUT was processed.
  61. >
  62. > Scripts cannot control operations that are performed while the
  63. > "terminal" is displayed to the end-user.  The CONNECT command
  64. > specifically gives control to the end-user and pauses the execution
  65. > of scripts.  The only exceptions are idle actions, triggers, and
  66. > host driven events (file transfers, APCs, ...).
  67. >
  68. > Kermit does not have a mode that permits the command processor
  69. > and the terminal to operate simultaneously because the command
  70. > processor is not thread safe.  Adding thread safety to the command
  71. > processor will require a complete re-write.
  72. >
  73. > Jeffrey Altman 
  74.  
  75.